<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>

    <style type="text/css"> 

			#ui-datepicker-div, .ui-datepicker{ font-size: 12px; }
			
			/* css for timepicker */
			.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
			.ui-timepicker-div dl { text-align: left; }
			.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
			.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
			.ui-timepicker-div td { font-size: 90%; }
			.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
			.ui-datepicker-next,.ui-datepicker-prev{background: #ccc;}
                        .ui-datepicker-today{ background: orange; }
    </style> 
   <link href='http://fonts.googleapis.com/css?family=Sintony' rel='stylesheet' type='text/css'>
  </head>
    <body onload="ini();">
        
        <?php
        
            //Validacion de navegadores de celular
            //$mobile_agents = '!(tablet|pad|mobile|phone|symbian|android|ipod|ios|blackberry|webos|Linux)!i';
 
            
            
            //if(!preg_match($mobile_agents, $_SERVER['HTTP_USER_AGENT']))
            //{
    
                    
      
      //echo phpinfo();
      if ($sf_user->isAuthenticated()): ?>
        <?php include_component('menuTop', 'menu') ?>
    <?php endif; ?>
      
        <div id="contenido">
 
            <?php 
 
 
 $horaActual = date('Y-m-d H:i:00');
 if ($sf_user->hasFlash('notice')): ?>
              
 
            <script type="text/javascript">
                
                jAlert('<div class="notice" style="float: left;" align= "center"><?php echo $sf_user->getFlash('notice') ?></div><div class="clear"></div>', 'Se realizo el Ingreso!');
                
            </script>
 
            <?php endif; ?>

            <?php if ($sf_user->hasFlash('error')): ?>
            <script type="text/javascript">
                
                jAlert('<div class="error" style="float: left;" align= "center"><?php echo $sf_user->getFlash('error') ?></div><div class="clear"></div>', 'Ocurrio un Error!');
                
            </script>
            <?php endif; ?>

            <?php echo $sf_content ?>
            <div class="clear"></div>
       
      
      <div class="clear"></div>
      <div id="slideDer">
        <div id="slideDer-intConten"></div>
        <div id="clear"></div>
      </div>
      
      <div id="boxInput"></div>
      
      <div id="boxAlertaBox">
          
      </div>
          
            
          
      </div>
      
      
      <script type="text/javascript">
          
          
        
        
            
        function checkTime(i)
        {if (i<10) {i="0" + i;}return i;}
        
       
            
        /*Esconde el menu Izq*/
        $("#slideDer").animate({
                left: parseInt($("#slideDer").css("left"))== 0 ?"-="+$("#slideDer").outerWidth() : 0
                },0);
           
           $(".intContenido").mouseleave(function(){ botonInfoCloseAll(); });
           
           
         <?php if ($sf_user->isAuthenticated()): ?>  
        //Contador de Intervalos de tiempo CrobJObs
        $.timer(300, function(){
            
            
            
            today=new Date();
            h=today.getHours();
            m=today.getMinutes();
            s=today.getSeconds();
            m=checkTime(m);
            s=checkTime(s);
            
            var horaActual = '<?php echo date('Y-m-d');?> '+h+":"+m+":"+s;
            
            
            
            $.ajax({
            url: '<?php echo url_for('alertaCliente/count')?>',
            data: 'horaActual='+horaActual,
            type: "POST",
            success: function(theResponse){
                
                if(parseInt(theResponse)!=0){
                    $('#boxAlertaBox').html(theResponse).show();
                }
                
                
                
                
            }});
        
        
            
            $.ajax({
            url: '<?php echo url_for('mensajeA/count')?>',
            type: "POST",
            success: function(theResponse){
                
                
                if(parseInt(theResponse)>0){
                    
                    $("#contenedor_msninterno").addClass('mensajeOn');
                    $('#mensajeCount').html(" [ "+parseInt(theResponse)+" ] ");
                    botonInfo($('#link_msninterno'),'190px','28px');
                    
                }
                
            }});
        
        
            
            
             
        });
        
        <?php endif; ?>
  
        
           
     </script>
      
   
        
        
      <div class="clear"></div> 
      
       
      <div id="divDisable" style="display: none;" onclick="closeAll();"></div>
      
    <script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-37926544-4', 'sisapp.us');
  ga('send', 'pageview');

</script>
      
      <?php

//189.164.8.156      

            //}else{
          
          //$this->redirect('default/error404');
          
      //} ?>
      
  </body>
</html>


